home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / dev / gg / ncurses-5.3.lha / ncurses-5.3 / menu / Makefile < prev    next >
Makefile  |  2002-10-24  |  12KB  |  400 lines

  1. # $Id: Makefile.in,v 1.36 2002/01/20 01:49:17 tom Exp $
  2. ##############################################################################
  3. # Copyright (c) 1998,1999,2000,2001,2002 Free Software Foundation, Inc.      #
  4. #                                                                            #
  5. # Permission is hereby granted, free of charge, to any person obtaining a    #
  6. # copy of this software and associated documentation files (the "Software"), #
  7. # to deal in the Software without restriction, including without limitation  #
  8. # the rights to use, copy, modify, merge, publish, distribute, distribute    #
  9. # with modifications, sublicense, and/or sell copies of the Software, and to #
  10. # permit persons to whom the Software is furnished to do so, subject to the  #
  11. # following conditions:                                                      #
  12. #                                                                            #
  13. # The above copyright notice and this permission notice shall be included in #
  14. # all copies or substantial portions of the Software.                        #
  15. #                                                                            #
  16. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
  17. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,   #
  18. # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL    #
  19. # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER      #
  20. # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING    #
  21. # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER        #
  22. # DEALINGS IN THE SOFTWARE.                                                  #
  23. #                                                                            #
  24. # Except as contained in this notice, the name(s) of the above copyright     #
  25. # holders shall not be used in advertising or otherwise to promote the sale, #
  26. # use or other dealings in this Software without prior written               #
  27. # authorization.                                                             #
  28. ##############################################################################
  29. #
  30. # Author: Thomas E. Dickey <dickey@clark.net> 1996,1997
  31. #
  32. # Makefile for menu source code.
  33. #
  34. # This makes the following:
  35. #    libraries (normal/debug/profile/shared)
  36. #
  37. # The variable 'srcdir' refers to the source-distribution, and can be set with
  38. # the configure script by "--srcdir=DIR".
  39. #
  40. # The rules are organized to produce the libraries for the configured models,
  41.  
  42. # turn off _all_ suffix rules; we'll generate our own
  43. .SUFFIXES:
  44.  
  45. SHELL        = /bin/sh
  46. THIS        = Makefile
  47.  
  48. MODEL        = normal
  49. DESTDIR        = 
  50. srcdir        = .
  51. prefix        = /gg
  52. exec_prefix    = ${prefix}
  53. bindir        = ${exec_prefix}/bin
  54. libdir        = ${exec_prefix}/lib
  55. includedir    = $(prefix)/include/ncurses
  56.  
  57. LIBTOOL        = 
  58.  
  59. INSTALL        = /bin/install -c
  60. INSTALL_LIB    = /bin/install -c -m 644
  61. INSTALL_PROG    = @INSTALL_PROG@
  62. INSTALL_DATA    = ${INSTALL} -m 644
  63.  
  64. AR        = ar
  65. AR_OPTS        = rv
  66. AWK        = gawk
  67. LD        = ld
  68. LN_S        = ln -s
  69.  
  70. CC        = gcc
  71. CPP        = gcc -E
  72. CFLAGS        = -O2 -fomit-frame-pointer -m68020-60 -ffast-math 
  73.  
  74. CPPFLAGS    =  -DNDEBUG -I. -I../include -I$(includedir) \
  75.           -DHAVE_CONFIG_H 
  76.  
  77. CCFLAGS        = $(CPPFLAGS) $(CFLAGS)
  78.  
  79. CFLAGS_LIBTOOL    = $(CCFLAGS)
  80. CFLAGS_NORMAL    = $(CCFLAGS)
  81. CFLAGS_DEBUG    = $(CCFLAGS) -g -DTRACE
  82. CFLAGS_PROFILE    = $(CCFLAGS) -pg
  83. CFLAGS_SHARED    = $(CCFLAGS) unknown
  84.  
  85. CFLAGS_DEFAULT    = $(CFLAGS_NORMAL)
  86.  
  87. LINK        = $(LIBTOOL) $(CC)
  88. LDFLAGS        = -s -lm  
  89.  
  90. SHLIB_DIRS    = -L../lib
  91. SHLIB_LIST    = $(SHLIB_DIRS) -lncurses 
  92.  
  93. MK_SHARED_LIB    = echo unknown
  94.  
  95. NCURSES_MAJOR    = 5
  96. NCURSES_MINOR    = 3
  97. REL_VERSION    = 5.3
  98. ABI_VERSION    = 5
  99.  
  100. RANLIB        = ranlib
  101.  
  102. IMPORT_LIB    = 
  103. SHARED_LIB    = 
  104. LIBRARIES    =  ../lib/libmenu.a
  105.  
  106. LINT        = 
  107. LINT_OPTS    = 
  108. LINT_LIBS    = -lmenu -lncurses 
  109.  
  110. AUTO_SRC    = \
  111.         ../include/menu.h \
  112.         ../include/eti.h \
  113.         ../include/mf_common.h
  114.  
  115. ################################################################################
  116. all \
  117. libs \
  118. install ::    $(AUTO_SRC) $(LIBRARIES)
  119.  
  120. sources :    $(AUTO_SRC)
  121.  
  122. $(DESTDIR)$(bindir) \
  123. $(DESTDIR)$(libdir) :
  124.     sh $(srcdir)/../mkinstalldirs $@
  125.  
  126. # make copies to simplify include-paths while still keeping menu's include
  127. # file in this directory.
  128. ../include/menu.h : $(srcdir)/menu.h
  129.     -rm -f $@
  130.     cp $(srcdir)/menu.h $@
  131. ../include/eti.h : $(srcdir)/eti.h
  132.     -rm -f $@
  133.     cp $(srcdir)/eti.h $@
  134. ../include/mf_common.h : $(srcdir)/mf_common.h
  135.     -rm -f $@
  136.     cp $(srcdir)/mf_common.h $@
  137.  
  138. MENU_PRIV_H = \
  139.     $(srcdir)/menu.priv.h \
  140.     $(AUTO_SRC) \
  141.     ../include/curses.h
  142.  
  143. tags:
  144.     ctags *.[ch]
  145.  
  146. #TAGS:
  147. #    etags *.[ch]
  148.  
  149. mostlyclean ::
  150.     -rm -f core tags TAGS *~ *.bak *.i *.ln *.atac trace
  151.  
  152. clean :: mostlyclean
  153.     -rm -f $(AUTO_SRC)
  154.  
  155. distclean :: clean
  156.     -rm -f Makefile
  157.  
  158. realclean :: distclean
  159.  
  160. ###############################################################################
  161. # The remainder of this file is automatically generated during configuration
  162. ###############################################################################
  163.  
  164. # generated by mk-0th.awk
  165.  
  166. .SUFFIXES: .c .cc .h .i .ii
  167. .c.i :
  168.     $(CPP) $(CPPFLAGS) $< >$@
  169. .cc.ii :
  170.     $(CPP) $(CPPFLAGS) $< >$@
  171. .h.i :
  172.     $(CPP) $(CPPFLAGS) $< >$@
  173.  
  174. C_SRC = \
  175.     $(srcdir)/m_attribs.c \
  176.     $(srcdir)/m_cursor.c \
  177.     $(srcdir)/m_driver.c \
  178.     $(srcdir)/m_format.c \
  179.     $(srcdir)/m_global.c \
  180.     $(srcdir)/m_hook.c \
  181.     $(srcdir)/m_item_cur.c \
  182.     $(srcdir)/m_item_nam.c \
  183.     $(srcdir)/m_item_new.c \
  184.     $(srcdir)/m_item_opt.c \
  185.     $(srcdir)/m_item_top.c \
  186.     $(srcdir)/m_item_use.c \
  187.     $(srcdir)/m_item_val.c \
  188.     $(srcdir)/m_item_vis.c \
  189.     $(srcdir)/m_items.c \
  190.     $(srcdir)/m_new.c \
  191.     $(srcdir)/m_opts.c \
  192.     $(srcdir)/m_pad.c \
  193.     $(srcdir)/m_pattern.c \
  194.     $(srcdir)/m_post.c \
  195.     $(srcdir)/m_req_name.c \
  196.     $(srcdir)/m_scale.c \
  197.     $(srcdir)/m_spacing.c \
  198.     $(srcdir)/m_sub.c \
  199.     $(srcdir)/m_userptr.c \
  200.     $(srcdir)/m_win.c
  201.  
  202. # Producing llib-lmenu is time-consuming, so there's no direct-dependency for
  203. # it in the lintlib rule.  We'll only remove in the cleanest setup.
  204. clean ::
  205.     rm -f llib-lmenu.*
  206.  
  207. realclean ::
  208.     rm -f llib-lmenu
  209.  
  210. llib-lmenu : $(C_SRC)
  211.     cproto -a -l -DLINT $(CPPFLAGS) $(C_SRC) >$@
  212.  
  213. lintlib :
  214.     sh $(srcdir)/../misc/makellib menu $(CPPFLAGS)
  215. lint :
  216.     $(LINT) $(LINT_OPTS) $(CPPFLAGS) $(C_SRC) $(LINT_LIBS)
  217.  
  218. # generated by mk-1st.awk
  219.  
  220. NORMAL_OBJS = \
  221.     ../objects/m_attribs.o \
  222.     ../objects/m_cursor.o \
  223.     ../objects/m_driver.o \
  224.     ../objects/m_format.o \
  225.     ../objects/m_global.o \
  226.     ../objects/m_hook.o \
  227.     ../objects/m_item_cur.o \
  228.     ../objects/m_item_nam.o \
  229.     ../objects/m_item_new.o \
  230.     ../objects/m_item_opt.o \
  231.     ../objects/m_item_top.o \
  232.     ../objects/m_item_use.o \
  233.     ../objects/m_item_val.o \
  234.     ../objects/m_item_vis.o \
  235.     ../objects/m_items.o \
  236.     ../objects/m_new.o \
  237.     ../objects/m_opts.o \
  238.     ../objects/m_pad.o \
  239.     ../objects/m_pattern.o \
  240.     ../objects/m_post.o \
  241.     ../objects/m_req_name.o \
  242.     ../objects/m_scale.o \
  243.     ../objects/m_spacing.o \
  244.     ../objects/m_sub.o \
  245.     ../objects/m_userptr.o \
  246.     ../objects/m_win.o
  247.  
  248. $(NORMAL_OBJS) : ../include/ncurses_cfg.h ./menu.priv.h
  249.  
  250. ../lib/libmenu.a : $(NORMAL_OBJS)
  251.     $(AR) $(AR_OPTS) $@ $?
  252.     $(RANLIB) $@
  253.  
  254. install \
  255. install.libs \
  256. install.menu :: $(DESTDIR)$(libdir) ../lib/libmenu.a
  257.     @echo installing ../lib/libmenu.a as $(DESTDIR)$(libdir)/libmenu.a
  258.     $(INSTALL_DATA) ../lib/libmenu.a $(DESTDIR)$(libdir)/libmenu.a
  259.     $(RANLIB) $(DESTDIR)$(libdir)/libmenu.a
  260.  
  261. uninstall \
  262. uninstall.libs \
  263. uninstall.menu ::
  264.     @echo uninstalling $(DESTDIR)$(libdir)/libmenu.a
  265.     -@rm -f $(DESTDIR)$(libdir)/libmenu.a
  266.  
  267. clean ::
  268.     -rm -f ../lib/libmenu.a
  269.  
  270. mostlyclean::
  271.     -rm -f $(NORMAL_OBJS)
  272.  
  273. # generated by mk-2nd.awk
  274.  
  275.  
  276. ../objects/m_attribs.o :    $(srcdir)/m_attribs.c \
  277.             $(MENU_PRIV_H)
  278.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../menu/m_attribs.c
  279.  
  280. ../objects/m_cursor.o :    $(srcdir)/m_cursor.c \
  281.             $(MENU_PRIV_H)
  282.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../menu/m_cursor.c
  283.  
  284. ../objects/m_driver.o :    $(srcdir)/m_driver.c \
  285.             $(MENU_PRIV_H)
  286.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../menu/m_driver.c
  287.  
  288. ../objects/m_format.o :    $(srcdir)/m_format.c \
  289.             $(MENU_PRIV_H)
  290.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../menu/m_format.c
  291.  
  292. ../objects/m_global.o :    $(srcdir)/m_global.c \
  293.             $(MENU_PRIV_H)
  294.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../menu/m_global.c
  295.  
  296. ../objects/m_hook.o :    $(srcdir)/m_hook.c \
  297.             $(MENU_PRIV_H)
  298.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../menu/m_hook.c
  299.  
  300. ../objects/m_item_cur.o :    $(srcdir)/m_item_cur.c \
  301.             $(MENU_PRIV_H)
  302.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../menu/m_item_cur.c
  303.  
  304. ../objects/m_item_nam.o :    $(srcdir)/m_item_nam.c \
  305.             $(MENU_PRIV_H)
  306.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../menu/m_item_nam.c
  307.  
  308. ../objects/m_item_new.o :    $(srcdir)/m_item_new.c \
  309.             $(MENU_PRIV_H)
  310.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../menu/m_item_new.c
  311.  
  312. ../objects/m_item_opt.o :    $(srcdir)/m_item_opt.c \
  313.             $(MENU_PRIV_H)
  314.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../menu/m_item_opt.c
  315.  
  316. ../objects/m_item_top.o :    $(srcdir)/m_item_top.c \
  317.             $(MENU_PRIV_H)
  318.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../menu/m_item_top.c
  319.  
  320. ../objects/m_item_use.o :    $(srcdir)/m_item_use.c \
  321.             $(MENU_PRIV_H)
  322.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../menu/m_item_use.c
  323.  
  324. ../objects/m_item_val.o :    $(srcdir)/m_item_val.c \
  325.             $(MENU_PRIV_H)
  326.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../menu/m_item_val.c
  327.  
  328. ../objects/m_item_vis.o :    $(srcdir)/m_item_vis.c \
  329.             $(MENU_PRIV_H)
  330.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../menu/m_item_vis.c
  331.  
  332. ../objects/m_items.o :    $(srcdir)/m_items.c \
  333.             $(MENU_PRIV_H)
  334.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../menu/m_items.c
  335.  
  336. ../objects/m_new.o :    $(srcdir)/m_new.c \
  337.             $(MENU_PRIV_H)
  338.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../menu/m_new.c
  339.  
  340. ../objects/m_opts.o :    $(srcdir)/m_opts.c \
  341.             $(MENU_PRIV_H)
  342.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../menu/m_opts.c
  343.  
  344. ../objects/m_pad.o :    $(srcdir)/m_pad.c \
  345.             $(MENU_PRIV_H)
  346.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../menu/m_pad.c
  347.  
  348. ../objects/m_pattern.o :    $(srcdir)/m_pattern.c \
  349.             $(MENU_PRIV_H)
  350.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../menu/m_pattern.c
  351.  
  352. ../objects/m_post.o :    $(srcdir)/m_post.c \
  353.             $(MENU_PRIV_H)
  354.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../menu/m_post.c
  355.  
  356. ../objects/m_req_name.o :    $(srcdir)/m_req_name.c \
  357.             $(MENU_PRIV_H)
  358.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../menu/m_req_name.c
  359.  
  360. ../objects/m_scale.o :    $(srcdir)/m_scale.c \
  361.             $(MENU_PRIV_H)
  362.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../menu/m_scale.c
  363.  
  364. ../objects/m_spacing.o :    $(srcdir)/m_spacing.c \
  365.             $(MENU_PRIV_H)
  366.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../menu/m_spacing.c
  367.  
  368. ../objects/m_sub.o :    $(srcdir)/m_sub.c \
  369.             $(MENU_PRIV_H)
  370.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../menu/m_sub.c
  371.  
  372. ../objects/m_userptr.o :    $(srcdir)/m_userptr.c \
  373.             $(MENU_PRIV_H)
  374.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../menu/m_userptr.c
  375.  
  376. ../objects/m_win.o :    $(srcdir)/m_win.c \
  377.             $(MENU_PRIV_H)
  378.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../menu/m_win.c
  379.  
  380. $(DESTDIR)$(includedir) :
  381.     sh $(srcdir)/../mkinstalldirs $@
  382.  
  383. install \
  384. install.libs \
  385. install.includes :: $(AUTO_SRC) $(DESTDIR)$(includedir) \
  386.         $(srcdir)/eti.h \
  387.         $(srcdir)/menu.h
  388.     @ (cd $(DESTDIR)$(includedir) && rm -f eti.h) ; ../headers.sh $(INSTALL_DATA) $(DESTDIR)$(includedir) $(srcdir) $(srcdir)/eti.h
  389.     @ (cd $(DESTDIR)$(includedir) && rm -f menu.h) ; ../headers.sh $(INSTALL_DATA) $(DESTDIR)$(includedir) $(srcdir) $(srcdir)/menu.h
  390.  
  391. uninstall \
  392. uninstall.libs \
  393. uninstall.includes ::
  394.     -@ (cd $(DESTDIR)$(includedir) && rm -f eti.h)
  395.     -@ (cd $(DESTDIR)$(includedir) && rm -f menu.h)
  396. depend : $(AUTO_SRC)
  397.     makedepend -- $(CPPFLAGS) -- $(C_SRC)
  398.  
  399. # DO NOT DELETE THIS LINE -- make depend depends on it.
  400.